-- 插件管理文件
return require('packer').startup(function(use)
    -- Packer can manage itself
    use 'wbthomason/packer.nvim'

    -- 主题配置
    use 'folke/tokyonight.nvim'
    use 'Mofiqul/vscode.nvim'

    -- 标签页
    use {
        'akinsho/bufferline.nvim',
        tag = "v2.*",
        requires = 'kyazdani42/nvim-web-devicons'
    }
    use {
        'kyazdani42/nvim-tree.lua',
        requires = {
            'kyazdani42/nvim-web-devicons' -- optional, for file icons
        },
        tag = 'nightly' -- optional, updated every week. (see issue #1193)
    }
    -- lualine -> statusBar
    use {
        'nvim-lualine/lualine.nvim',
        requires = {'kyazdani42/nvim-web-devicons', opt = true}
    }
    -- 开始界面
    use {'glepnir/dashboard-nvim'}
    -- which key
    use {"folke/which-key.nvim"}
    -- 终端配置
    use {"akinsho/toggleterm.nvim", tag = 'v2.*'}
    -- treesitter
    use {
        'nvim-telescope/telescope.nvim',
        tag = '0.1.0',
        requires = {
            {'nvim-lua/plenary.nvim'}, {
                'nvim-treesitter/nvim-treesitter',
                run = function()
                    require('nvim-treesitter.install').update({with_sync = true})
                end
            }
        }
    }
    -- 文件模糊查询
    use {"nvim-telescope/telescope-file-browser.nvim"}
    -- 自动设置会话
    use {'rmagatti/auto-session'}
    -- 添加其他插件
end)

